<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="ua.cv.westward.dvpic" >
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY" />

    <application
        android:icon="@drawable/icon"
        android:label="@string/app_name"
        android:theme="@style/Theme.AppCompat.Light"
        android:name=".MyApplication"
        android:allowBackup="true"
        android:fullBackupContent="@xml/backup_descriptor"
        android:usesCleartextTraffic="true"
        android:requestLegacyExternalStorage="true"
        tools:targetApi="q">
        <provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="${applicationId}.provider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/filepaths" />
        </provider>
        <activity
            android:name=".DVPicActivity"
            android:theme="@style/Theme.Main.Sherlock"
            android:exported="true">
            <intent-filter>
                <action android:name=".MainActivity" />
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <activity
            android:name=".FlipViewerActivity"
            android:theme="@style/Theme.App.Sherlock" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="ua.cv.westward.dvpic.DVPicActivity" />
        </activity>
        <activity
            android:name=".log.LogViewerActivity"
            android:theme="@style/Theme.App.Sherlock">
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="ua.cv.westward.dvpic.DVPicActivity" />
        </activity>
        <activity
            android:name=".SettingsActivity"
            android:theme="@style/Theme.App.Sherlock"
            android:label="@string/menu_preferences_title"
            android:parentActivityName=".DVPicActivity">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".DVPicActivity" />
        </activity>

        <activity
            android:name=".WelcomeActivity"
            android:theme="@style/Theme.App.Sherlock"
            android:label="@string/welcome"
            android:parentActivityName=".DVPicActivity">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".DVPicActivity" />
        </activity>
        <service android:name=".service.WorkerService" />
        <service
            android:name=".MyFirebaseMessagingService"
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>

        <receiver
            android:name=".widget.IconWidget" android:label="@string/app_name" android:icon="@drawable/icon"
            android:exported="false">
            <intent-filter >
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
            </intent-filter>
            <meta-data
                android:name="android.appwidget.provider"
                android:resource="@xml/icon_widget_info" />


        </receiver>
        <meta-data
        android:name="com.google.firebase.messaging.default_notification_icon"
        android:resource="@drawable/ic_notify" />
        <meta-data
            android:name="com.google.firebase.messaging.default_notification_channel_id"
            android:value="@string/default_notification_channel_id" />
    </application>

</manifest>
